improve language string
refactor the flash_message function, add flash_error and flash_info
remove duplicate code
register and login ui improve