fixed user registration error