Checks errors in spring security annotations