Small changes to the login system