finished simple user function

bind user with diary