Checks errors in Spring security annotations