[TASK] Optimized registrationValidator to be more clear and fixed registrationValidator unit tests to run standalone on CLI