Set g.login_required = True when the view requires a login to access