cleanup of the application form error messages and navigation bar