changes to login mode