tried debugging. the problem is the input field is not capturing what was typed