Add register template

upd api carcass
add register template
add validate to registration fields