fix sign up logic