Security improvement by using a modified coherent state for quantum cryptography