Code updates

Fixed the checkpoint for checking invalid inputs