Added inheritance to User and fixes in bid and dispatch models