Conditional showing and not showing of error messages and next/previous buttons