fixed users register bug