fixed check second auth call from client, add browser call to login
function