Add editting profile. Also fixed sending email isssues.