Fixed issue with not redirecting after registering