added validation and new field to user registration