adding support for local authentication
working on fixes for authenticated sections