[SD-714] [SD-718]: Fixed:

Upsert of User Profile after successful Authentication into Mongo, was failing when AD is enabled.
Command users:copyfromad fails to insert user into Mongo.
Added AD check in UsersService to avoid adding hashed password to doc when AD is enabled