Added email form and started submitEmail function