rewrite login model
rewrite register model