Added secure module, added simple authentification, added register stub