fix bugs in email confirmation
fix bug in calling send_email
update requirement.txt