Search fixes

Style error messages, popup dialogue for logging usage, clean up email templates. Search models fixed to correct state.