Set up security and user service