adds policy and loginmodule code
adds policy and loginmodule code