Implemented Errors handling on login (TODO parse JSON with other libraries)