added password features to logic and updated index