some error handling to web portal