validate and test for user