User registration fixed