add createUser action and its logic