display error message when wrong input in root view