Make login and register inaccessible for logged in users
Refactored controller unit test to one dispatch per test