Remove debug code.
Move state up into application.
Move search result into it own class.

For some odd reason SearchResult gives warnings, while using Searchresult works fine...
Add isLoggedIn property.