added index and password digest to user model