added password resets stuff, added index_table helper function and partial