Connected mailer to layout
Added 'edit profile' link to tests