add authenticate method to ApplicationController. add users#index action to authenticate and return user record