added error message if no name entered. Added unit test suite