working code on sign in/create account