fixed email submission issue