Added checkCredentials on startup
Replaced thrown exception with null return
Added exception handling for contactsync