Adding handling back end and fron end errors