isAuthenticated middleware added to login.js

login.isAuthenticated makes sure that a user is authenticated before
proceeding to the next callback in the app.VERB() sequence.