How to capture form fields to programmatically create new users
As AyeshK pointed out there are several examples out there. This should have all the elements you need.

First you must create a form to use in your block with hook_form, create your custom submit handler, and use your form values found in $form_state.