fixed login redirection to go to the dashboard