Move login system in userbean. Fix search query by email.