Adding functionality to authenticate users from new login api