showing error if there is any