modified api. login working