func GetUserID(username string) (int, error) {
	var userID int
	userSQL := "select id from user where username=?"
	rows := database.query(userSQL, username)
	defer rows.Close()
	if rows.Next() {
		err := rows.Scan(&userID)
		if err != nil {
			return -1, err
		}
	}
	return userID, nil
}
GetUserID will get the user's ID from the database
package db
import "log"
func CreateUser(username, password, email string) error {
	err := taskQuery("insert into user(username, password, email) values(?,?,?)", username, password, email)
	return err
}
func ValidUser(username, password string) bool {
	var passwordFromDB string
	userSQL := "select password from user where username=?"
	log.Print("validating user ", username)
	rows := database.query(userSQL, username)
	defer rows.Close()
	if rows.Next() {
		err := rows.Scan(&passwordFromDB)
		if err != nil {
			return false
		}
	}
	if password == passwordFromDB {
		return true
	}
	return false
}