Refactor sending reg params

Refactor code for sending registration parameters from modal form