fixes error handling in contact form