Added uppercase uname field into user document.
simplified constraints pipeline phases.