AuthComponent::login() returning deprecated method

Changed $this->loggedIn() to $this->user(), as per the PHPDOC for loggedIn() at line 817
Fixed type-casting for AuthComponent::login()
Merge pull request #4604 from sutt0n/patch-1

AuthComponent::login() returning deprecated method