Refined search code to use single variable rather tahn repeated LIKE ?.  Also used ILIKE for production DB.  Fixed bug in new user creation permissions check.  Reset role to user if user's role was nil or empty