Added username field into generate_link.tpl template  and Fixed email sender