add styles before session init

stylings for error message in #1898