Try adding the following to your logon html:
<input id="errorPage" type="hidden" name="errorPage" value="http://www.myurl.com:8180/AwareIM/logon ... main=Sales">
Of course the value needs to be the complete and correct URL for your logon page HTML.
Unfortunately, when adding the above, you no longer get the "Invalid credentials or access denied. Please try again." error.