password hash function added