added middleware for account level authy auth as well as better logging and reordering of views