Added HTML5 validation for registration form