this was a biggie. Added exceptions for when the login goes a bit pete tong