Some changes to reg and login