User template, auth tests and  security