if its meant to check an existing account, maybe we could limit the query to select only the id, for faster execution:
``$row = $db->row('SELECT id FROM account WHERE username = ? && password = ?', array($username,$password));``