User validation method created