authentication on localStorage, screen updated, flash messages