Login system written in C