first time login logic working