Issue 352, Unable to register user using PGSQL fixed.