FINISHED

Added validation for input