configured spring security authentication with hibernate