Improvements to the security of the login process