Add login system and event addition system

Add login system database connection, addUser, addClub and loginCheck
functions to functions.php. Try to make cleaner code.