Simple authentication class for PHP