Added user checking to the start of the script