User validation

A user is validated before inserted into db