Hash password for login check