adding registration validation with messages