Fix users are not being redirected after logging in sucessfully.