add login_required and ajax_required decorators