Added better error handling around nest login