validate user method