added encodePassword(), updateUserData() and checkLogin()
added selectByGUID() and update()
improved checkLogin()