Basic input validation of a seven digit phone number using switch statement.