user db registration, using add_user function, send_email better exceptions