Using the login_required decorator for the handlers