Log out added. Login route refactored