fixed current_user.id usage during ajax request