Improve error handling & fix null pointer exceptions for login and graph...