Refactored the checkLogin method.
Added the authenticateCookie method to the Authenticator.