some tiny changes to the login procedure