add login element and routes for logging in and logging out