register working, login almost working