Added input verfication to registration