Added code to get the logged in users