fixing some bugs with user searching and creation.