display error message instead of shitty alert