Small issues fixed

1) Fixed where matches checked for username when user was not logged in.

2) Added dialog to search page when no results came up