Fixing registration and password reset