My first issue (the login issue) has been solved but I have just noticed another issue. Registered users can actually visit the dashboard. Though dashboard access is restricted and allows only to edit the profile page, I don’t want that to happen. How to prevent that from happening?