adding auto-login after sign-up and password hashing