added opton to show or hide inline error