Third commit

tests if numbers are valid, and for mastercards but an error occurs for
other types of card