added solution for validate credit card