tweaks to login process