Prevent null entries and keyboard