added colorful messages, fixed a stupid error on cleaning a char array for log in