Creating All User-Related Code; Authentication (Login and Logout) Following our Blog Tutorial example, imagine we wanted to secure access to certain URLs .