Added functionality for creating new user