Validate user in the DB and give the corresponding answer