Fixing sign in so that it correctly redirects to the dashboard.