fixed the error with creating user