Upgraded the login form to WTForms and improved the expense insertion code and form error feedback