move some method to User.php
move add some method