added registrations controller, added register and unregister funcionality