Changed loginActivity to parse in JSON (UNTESTED)