rewrite user managemet