Implemented submit handler and enabled press enter key.