hashing passwords and cookies for signup