Removed stray console.log.
Removed unused parameter.
User cannot access the login page again if already logged in.