Fixed nullpointer error in sign-up