reworked login logic to allow account creation