added alert dialog for invalid user inputs in search activity