registrations validation function finished