added func login after sign up