STORY #15: Functions of user_details controller and devise flash msg
STORY #15：merge with 黄建