Bug fixes and added confirmation code to emails.