disable register when login.