Updated Spring Security file to remove duplicate entry