Pressing enter on a form in a modal just closes modal and does not submit