Move un-invite user function to restcontroller and refactoring of the code

Using rest gui
Refatoring of the validation to throw exceptions