Adding pattern on input for mobile