moved searchforkwords to login manager and made class