Login attempt returns true instead of exiting immediately