fix somes bugs in user_model.php