added status validation and content length (need to verify lenght)