added validation in registration form