Csrf and grade controller check