Added functionality to the addNewUser template