Add a index and fix the password storage for admin set passwords