Fixed bug with displaying latest event
Refactoring
Added validation for registration form