More improvents to the login system