set user in session after successful registration
display error message from server