setup user authorization and user templates