Functionality to save error messages

The user can select a path to save the error and it also checks for
invalid student numbers