initializing devise and foundation