login sorta works. getting caught up in read/write