added logging to file for users and accounts