loggin and public default states