Fix automatic login after creating account