changed authentication mechanism to use a function which compares the password, note the function must be owned by a superuser