auth & register fix