Added is_trusted User method and moved checkin data to separate functions