added functionality for creating users