Fixed issue with always redirecting to dashboard after sign-in