fixed check user valid