added support for using alternate attribute for user id