Implemented the require_login view decorator and decorated all views requiring login.