reg and login fixed