Checking if cookie is valid before returning that they're logged in
Merge pull request #534 from jovanchohan/valid_login

Checking if cookie is valid before returning that they're logged in