- removed unneccary code
- remove messagebox occurring after invalid input