Added validation for unsaved data

The web page returns a message to the user if the user tries to leave
the page without saving the information. This has been implemented in
CompanyView.