add function to register a new user and send a activation code via email
add registration confirm function
fix confirm form to show errors and messages