Practice id/message boxes

Added functionality to store and use the practice_id instead of the
name. Also added additional message boxes/checks for various problems