added email form functionality