Log-in now working. Error handling also.
Fixed the loading of data from files not being forwarded to the right instance.