Added FK support for REQUIRED_FIELDS and USERNAME_FIELD.

this seems to hang on PostgreSQL/MySQL: Error: group instance with pk 1 does not exist.