Added the "validator" library
Improved registration validation