Login seems a bit hacky with all the casting, but it appears to work. The app crashes on cellForRowAtIndexPath inside ProjectsViewController, but I will fix that shortly.