log file for user login/out working