fixed crashing when trying to sign up