implemented basic authentication using Devise