Cleanning up all login mess

Login from anywhere you will get your view according to c
credentials.
Redirecting to specific views.
Code cleanup with correct code flows.