added password functions to rex_login
added $isPreHashed parameter