commit to have proper message displayed if some user input is not correctly specified