hack to stop the credentials page to be posted on hitting the return key