Add support for flash messages. Use new nav style. Fix username case-sensitivity.