Short curcuit bb logic to only login and return 1 or 0.