added hash function + hashing pw sent to server