Added logic for getting logged in users. Updated UserDetails