remove unneeded param from setloggedinuser func