Created login and logout method
Added login and logout route
corrected the logout link form a route link to a 'to()' link
Corrected the post url to '/login'