changes to login workflow