Fixed issue 6, added validation for empty command