Fixed some logout issues and completed jquery search