added login/logout controller methods
added some search methods