Check mail format and Fix some bug