Add method showErrors to show the error on the screen