register/login fixes