Add provision to show error nessages