added loader gif to display while connection is being made after form submit