Created login/logout function
Fix login redirection
fix redirection to correct controller