Added checkAuthen and usernameExist functions in signup_function.php, and updated sendAuth and signup functions. Now authen code will be stored in database for later check, and signup function will not insert a new row if the given netID exist and auth=0