moved redirection after login and edit_profile to the dashboard page