adding validation on file extension
added more explicit validation message
add close button