added functionality to add a user