use md5 to encrypt the password saved in database;fix some bugs in user part