Fixed error handling on submission form