Added validations for running in command line env