Added the adduser function to controller