Added functionality to create users.