added validation in registration form (no proper validation yet)