generate sha1 password when register new user