improve language string
refactor the flash_message function, add flash_error and flash_info