User registration duplicate bug fix