Added restriction to registration and http status codes