got the dashboard page working so the user now gets redirected to dashboard when they sign in