Fixed redirect issue that user would always be redirected to "/" after sign up