Added a security fix for the login system.