Added functionality to create user on server if the given username is not registered.