fixed foreign keys for handling a custom user model