Profile id is not always the same as user_id

This fixes a bug with unique fields not validating correctly when the profile id and the user id go out of sync.