sets up environment for Devise