configure authentication of spring security with date stored entities