register working, login issues