sql hashing and validation + spring controller validation