Reg and login fix