added registration validation for duplicate emails