Changed lower submit button to name=submit from name=submit2 as submit is used to check if the search was made and thus whether to show resource or not