fix the user registrasion bug