fix register bug: change the currentUser();
modify db.sql: add a avatar to user_profiles;
1.implements the modify avatar module
2.add aftersave callback funtion in the User model.
Merge branch 'master' of github.com:nwpu-graduation-project/MindParadise