validate user value