User story 5 complete - displays error message