add role of user and fixed some problems about save user