Adding @login_required to pages that require login