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

...nder