Changed viewport
Added validation and adjusted the error message
Added validation