beginnings of loginviewcontroller