Refactored login code, added contact to IDashApi for login