fix error messages and add signin, signout flash