Added login spec and login flow