Added the login_required decorator to provide restricted access to some pages