Implemented basic simpleAuth functionality