[#16] added logic for creating users