Hashing algorithm implemented on signup and login