updates register and google login