Added functionality for creating users