reg and login fixes