styled up and hooked input to pattern