rewrite user modle
fixed import bugs