Bug when resetting password and registering