adding an answer view and input validation