Adding validation check in model constructor before calling initialize