routing and views for login and out