Added validation in Registration