fix sign up functionality