login is working, need to save into preferences and make it hang