added helper method to authenticate_user
!