Update main

Added User input filtering.