added gems and middleware in apps and omniauth in config