Credit card validation - java