Fixed the security issues with logging in.