Fix create user and login workflow