Changed users controller to solve dynamic constant assignment error