hash function for passwords added
find user by name and id added